package com.ws.entity;

/**
 * @author 王硕
 * @version jdk21
 * @className Dog
 * @description
 * @date 2024/11/7 21:52
 */
public class Dog extends Animal1{
    public Dog(String name, String color) {
        super(name, color);
    }

    // 咬人行为
    public void bite() {
        System.out.println(name + "正在咬人");
    }
}
